import request from '@/utils/request'

// 查询张拉记录列表
export function listRecording(query) {
  return request({
    url: '/zhgd/recording/tensionRecordingList',
    method: 'get',
    params: query
  })
}

// 查询张拉记录详细
export function getRecording(id) {
  return request({
    url: '/zhgd/recording/' + id,
    method: 'get'
  })
}

// 新增张拉记录
export function addRecording(data) {
  return request({
    url: '/zhgd/recording',
    method: 'post',
    data: data
  })
}

// 修改张拉记录
export function updateRecording(data) {
  return request({
    url: '/zhgd/recording',
    method: 'put',
    data: data
  })
}

// 删除张拉记录
export function delRecording(id) {
  return request({
    url: '/zhgd/recording/' + id,
    method: 'delete'
  })
}

// 查询张拉结果列表
export function listResult(query) {
  return request({
    url: '/zhgd/result/selectCode',
    method: 'get',
    params: query
  })
}

// 查询张拉过程列表
export function processData(query) {
  return request({
    url: '/zhgd/process/holeNumber',
    method: 'get',
    params: query
  })
}

// 查询Echart图数据
export function listHoleNumberSjfx(query) {
  return request({
    url: '/zhgd/process/holeNumberSjfx',
    method: 'get',
    params: query
  })
}

// 查询张拉详情
export function getReportDetail(query) {
  return request({
    url: '/zhgd/result/reportDetail',
    method: 'get',
    params: query
  })
}

// 张拉报表编辑回显
export function getTensionReportEdit(id) {
  return request({
    url: '/zhgd/tensionReportEdit/' + id,
    method: 'get'
  })
}

// 张拉报表编辑确定按钮
export function putTensionReportEdit(data) {
  return request({
    url: '/zhgd/tensionReportEdit',
    method: 'put',
    data: data
  })
}

// 手动校验（老）
export function isQualifiedList(data) {
  return request({
    url: '/zhgd/nLaboratoryTensionRequires/isQualifiedList',
    method: 'post',
    data: data
  })
}


// 手动校验张拉(新)
export function handCheckRecordIng(data) {
  return request({
    url: '/zhgd/nLaboratoryTensionRequires/handCheck',
    method: 'post',
    data: data
  })
}

// 梁场列表
export function materielDeviceListAll(query) {
  return request({
    url: '/zhgd/materielDevice/listAll',
    method: 'get',
    params: query
  })
}

// 梁场设备编号列表
export function codeList(query) {
  return request({
    url: '/zhgd/materielDevice/codeList',
    method: 'get',
    params: query
  })
}








